prettier: change to single quoting

This commit is contained in:
Torkel Ödegaard
2017-12-20 12:33:33 +01:00
parent 2a360c45a2
commit 85879a7014
304 changed files with 10558 additions and 10519 deletions

View File

@@ -1,5 +1,5 @@
import config from "app/core/config";
import { coreModule } from "app/core/core";
import config from 'app/core/config';
import { coreModule } from 'app/core/core';
export class ProfileCtrl {
user: any;
@@ -19,26 +19,26 @@ export class ProfileCtrl {
) {
this.getUser();
this.getUserOrgs();
this.navModel = navModelSrv.getNav("profile", "profile-settings", 0);
this.navModel = navModelSrv.getNav('profile', 'profile-settings', 0);
}
getUser() {
this.backendSrv.get("/api/user").then(user => {
this.backendSrv.get('/api/user').then(user => {
this.user = user;
this.user.theme = user.theme || "dark";
this.user.theme = user.theme || 'dark';
});
}
getUserOrgs() {
this.backendSrv.get("/api/user/orgs").then(orgs => {
this.backendSrv.get('/api/user/orgs').then(orgs => {
this.orgs = orgs;
this.showOrgsList = orgs.length > 1;
});
}
setUsingOrg(org) {
this.backendSrv.post("/api/user/using/" + org.orgId).then(() => {
window.location.href = config.appSubUrl + "/profile";
this.backendSrv.post('/api/user/using/' + org.orgId).then(() => {
window.location.href = config.appSubUrl + '/profile';
});
}
@@ -47,7 +47,7 @@ export class ProfileCtrl {
return;
}
this.backendSrv.put("/api/user/", this.user).then(() => {
this.backendSrv.put('/api/user/', this.user).then(() => {
this.contextSrv.user.name = this.user.name || this.user.login;
if (this.old_theme !== this.user.theme) {
window.location.href = config.appSubUrl + this.$location.path();
@@ -56,4 +56,4 @@ export class ProfileCtrl {
}
}
coreModule.controller("ProfileCtrl", ProfileCtrl);
coreModule.controller('ProfileCtrl', ProfileCtrl);