mirror of
https://github.com/documize/community.git
synced 2025-08-02 12:05:23 +02:00
i18n page strings
This commit is contained in:
parent
073ef81e80
commit
6d735e8579
8 changed files with 41 additions and 81 deletions
|
@ -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 = "/";
|
||||
});
|
||||
|
|
|
@ -1,34 +0,0 @@
|
|||
// Copyright 2016 Documize Inc. <legal@documize.com>. 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 <sales@documize.com>.
|
||||
//
|
||||
// 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');
|
||||
}
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue