dashboard link

This commit is contained in:
Mo Bitar
2017-02-02 19:20:08 -06:00
parent 0b4b865e09
commit 45df7b28da
2 changed files with 5 additions and 0 deletions

View File

@@ -27,6 +27,10 @@ class AccountMenu {
return syncManager.serverPassword;
}
$scope.dashboardURL = function() {
return `${$scope.server}/dashboard?server=${$scope.server}&id=${$scope.user.email}&pw=${$scope.serverPassword}`;
}
$scope.submitPasswordChange = function() {
$scope.passwordChangeData.status = "Generating New Keys...";

View File

@@ -36,6 +36,7 @@
%label.block.mt-5.mb-0
Server password:
.wrap.normal.mt-1 {{serverPassword() ? serverPassword() : 'Not available. Sign out then sign back in to compute.'}}
%a.block.mt-5{"href" => "{{dashboardURL()}}", "target" => "_blank"} Standard File Dashboard
%div.bold.mt-10.blue{"delay-hide" => "true", "show" => "syncStatus.syncOpInProgress", "delay" => "1000"}
.spinner.inline.mr-5.blue