diff --git a/gui/app/components/onboard/share-folder.js b/gui/app/components/onboard/share-folder.js index 9243614f..4f1c1022 100644 --- a/gui/app/components/onboard/share-folder.js +++ b/gui/app/components/onboard/share-folder.js @@ -20,7 +20,9 @@ export default Component.extend({ slug: "", processing: false, - didRender() { + didRender(...args) { + this._super(...args); + let self = this; $("#stage-1-firstname").focus(); @@ -97,8 +99,6 @@ export default Component.extend({ if ($("#stage-2-password-confirm").val() !== $("#stage-2-password").val()) { $("#stage-2-password").addClass("is-invalid"); $("#stage-2-password-confirm").addClass("is-invalid"); - // $(".mismatch").show(); - // $(".password-status").attr("src", "/assets/img/onboard/lock-red.png"); return; } @@ -115,7 +115,6 @@ export default Component.extend({ self.set('processing', true); $(".stage-3").fadeIn(); - // $("#spinner-1").show(); var payload = '{ "password": "' + $("#stage-2-password").val() + '", "serial": "' + self.serial + '", "firstname": "' + $("#stage-1-firstname").val() + '", "lastname": "' + $("#stage-1-lastname").val() + '" }'; var password = $("#stage-2-password").val(); @@ -126,11 +125,6 @@ export default Component.extend({ self.get('session').authenticate('authenticator:documize', creds).then(() => { window.location.href = '//' + window.location.host + '/s/' + self.folderId + "/" + self.slug; }); - - // var credentials = encodingUtil.Base64.encode(netUtil.getSubdomain() + ":" + user.email + ":" + password); - // self.session.sso(credentials).then(function() { - // window.location.href = 's/' + self.folderId + "/" + self.slug; - // }); }, function() { window.location.href = "/"; }); diff --git a/gui/app/components/setup/first-run.js b/gui/app/components/setup/first-run.js deleted file mode 100644 index 8739194d..00000000 --- a/gui/app/components/setup/first-run.js +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright 2016 Documize Inc. . All rights reserved. -// -// This software (Documize Community Edition) is licensed under -// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html -// -// You can operate outside the AGPL restrictions by purchasing -// Documize Enterprise Edition and obtaining a commercial license -// by contacting . -// -// https://documize.com - -import { inject as service } from '@ember/service'; -import Modals from '../../mixins/modal'; -import Component from '@ember/component'; - -export default Component.extend(Modals, { - localStorage: service(), - - didInsertElement() { - this._super(...arguments); - - let firstRun = this.get('localStorage').isFirstRun(); - - if (firstRun) { - this.modalOpen('#first-run-modal', {'show': true}); - } - }, - - actions: { - onCloseModal() { - this.modalClose('#first-run-modal'); - } - } -}); diff --git a/gui/app/templates/components/layout/grid/sidebar-go-top.hbs b/gui/app/templates/components/layout/grid/sidebar-go-top.hbs index 4c857054..ffc7ca54 100644 --- a/gui/app/templates/components/layout/grid/sidebar-go-top.hbs +++ b/gui/app/templates/components/layout/grid/sidebar-go-top.hbs @@ -1 +1 @@ - + diff --git a/gui/app/templates/components/layout/master-navigation.hbs b/gui/app/templates/components/layout/master-navigation.hbs index db78e842..fcf0e2c1 100644 --- a/gui/app/templates/components/layout/master-navigation.hbs +++ b/gui/app/templates/components/layout/master-navigation.hbs @@ -3,25 +3,25 @@ {{#unless hideNavigation}}
{{#link-to "folders" class=(if (eq selectedItem "spaces") "option selected" "option")}} - + {{/link-to}} {{#if (eq appMeta.edition constants.Product.EnterpriseEdition)}} {{#if session.viewDashboard}} {{#link-to "action" class=(if (eq selectedItem "actions") "option selected" "option")}} - + {{/link-to}} {{#link-to "activity" class=(if (eq selectedItem "activity") "option selected" "option")}} - + {{/link-to}} {{/if}} {{#if session.viewAnalytics}} {{#link-to "analytics" class=(if (eq selectedItem "analytics") "option selected" "option")}} - + {{/link-to}} {{/if}} {{/if}} {{#link-to "search" class=(if (eq selectedItem "search") "option selected" "option")}} - + {{/link-to}}
@@ -29,29 +29,29 @@ {{#if session.isAdmin}} {{#unless appMeta.valid}}
- +
{{/unless}} {{#unless appMeta.configured}}
- +
{{/unless}} {{/if}} {{#if session.authenticated}} {{#if hasPins}}
- + {{#attach-popover class="ember-attacher-popper" hideOn="clickout click" showOn="click" isShown=false}}