Files
threshold-ui/ui/desktop/app/controllers/scopes/scope/projects/settings/index.js
T

22 lines
588 B
JavaScript
Raw Normal View History

2024-07-17 10:22:52 -07:00
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
2024-08-06 12:21:44 -07:00
import Controller, { inject as controller } from '@ember/controller';
import { action } from '@ember/object';
2024-07-17 10:22:52 -07:00
2024-08-06 12:21:44 -07:00
export default class ScopesScopeProjectsSettingsIndexController extends Controller {
@controller('application') application;
// =actions
2024-08-06 12:21:44 -07:00
/**
* Calls the Application controller's toggleTheme method
* @param {string} theme - "light", "dark", or nullish (system default)
*/
@action
toggleTheme({ target: { value: theme } }) {
return this.application.toggleTheme(theme);
}
}