Initial move from angular shell to vue
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
import { API_ORIGIN, APP_TYPES, PROXY_APP_ID, HSTATES, ISTATES, RSTATES } from '../constants.js';
|
||||
import { fetcher } from 'pankow';
|
||||
import { sleep } from 'pankow/utils';
|
||||
import moment from 'moment';
|
||||
import moment from 'moment-timezone';
|
||||
|
||||
function installationStateLabel(app) {
|
||||
if (!app) return '';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
import moment from 'moment';
|
||||
import moment from 'moment-timezone';
|
||||
import { ansiToHtml } from 'anser';
|
||||
import { API_ORIGIN } from '../constants.js';
|
||||
|
||||
|
||||
@@ -30,6 +30,8 @@ function create() {
|
||||
|
||||
if (error || result.status !== 200) return [error || result];
|
||||
|
||||
result.body.isAtLeastUserManager = [ ROLES.OWNER, ROLES.ADMIN, ROLES.MAIL_MANAGER, ROLES.USER_MANAGER ].indexOf(result.body.role) !== -1;
|
||||
result.body.isAtLeastMailManager = [ ROLES.OWNER, ROLES.ADMIN, ROLES.MAIL_MANAGER ].indexOf(result.body.role) !== -1;
|
||||
result.body.isAtLeastAdmin = [ ROLES.OWNER, ROLES.ADMIN ].indexOf(result.body.role) !== -1;
|
||||
result.body.isAtLeastOwner = [ ROLES.OWNER ].indexOf(result.body.role) !== -1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user