@fleetbase/ember-ui
Version:
Fleetbase UI provides all the interface components, helpers, services and utilities for building a Fleetbase extension into the Console.
29 lines (23 loc) • 852 B
JavaScript
import Component from '@glimmer/component';
import { inject as service } from '@ember/service';
import { action } from '@ember/object';
import config from 'ember-get-config';
export default class FleetbaseAttributionComponent extends Component {
modalsManager;
licensingUrl = 'https://www.fleetbase.io';
get disabled() {
return config.APP?.disableFleetbaseAttribution === true;
}
get appVersion() {
return config.version ? `v${config.version}` : null;
}
openLegalNotice() {
this.modalsManager.show('modals/fleetbase-legal-notice', {
title: 'Fleetbase Legal Notices',
acceptButtonText: 'Done',
acceptButtonIcon: 'check',
hideDeclineButton: true,
modalClass: 'modal-md fleetbase-legal-notice-modal',
});
}
}