open-nomad/ui/app/services/user-settings.js
2023-04-10 15:36:59 +00:00

15 lines
455 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import Service from '@ember/service';
import localStorageProperty from 'nomad-ui/utils/properties/local-storage';
export default class UserSettingsService extends Service {
@localStorageProperty('nomadPageSize', 25) pageSize;
@localStorageProperty('nomadLogMode', 'stdout') logMode;
@localStorageProperty('nomadTopoVizPollingNotice', true)
showTopoVizPollingNotice;
}