Skip to content
Snippets Groups Projects
Commit 02b0b526 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[enh] Join modal: Disable member account creation, if demo mode

parent e5b862ba
No related branches found
No related tags found
No related merge requests found
...@@ -23,6 +23,7 @@ angular.module("cesium.config", []) ...@@ -23,6 +23,7 @@ angular.module("cesium.config", [])
"decimalCount": 2, "decimalCount": 2,
"httpsMode": false, "httpsMode": false,
"shareBaseUrl": "https://g1.duniter.fr", "shareBaseUrl": "https://g1.duniter.fr",
"demo": true,
"helptip": { "helptip": {
"enable": true, "enable": true,
"installDocUrl": { "installDocUrl": {
...@@ -98,8 +99,8 @@ angular.module("cesium.config", []) ...@@ -98,8 +99,8 @@ angular.module("cesium.config", [])
} }
}, },
"version": "1.6.5", "version": "1.6.5",
"build": "2020-04-22T17:36:59.565Z", "build": "2020-04-30T16:11:11.201Z",
"newIssueUrl": "https://git.duniter.org/clients/cesium-grp/cesium/issues/new" "newIssueUrl": "https://git.duniter.org/clients/cesium-grp/cesium/issues/new"
}) })
; ;
\ No newline at end of file
<ng-if ng-if=":state:enable && extensionPoint === 'select-account-type'"> <ng-if ng-if=":state:enable && extensionPoint === 'select-account-type'">
<!-- ornigzation wallet --> <!-- organization wallet -->
<div class="item item-complex card stable-bg item-icon-left item-icon-right ink" <div class="item item-complex card stable-bg item-icon-left item-icon-right ink"
ng-class="{ activated: accountTypeMember != null && !accountTypeMember }" ng-class="{ activated: accountTypeMember != null && !accountTypeMember }"
ng-click="selectAccountType('organization')"> ng-click="selectAccountType('organization')">
......
...@@ -80,29 +80,33 @@ ...@@ -80,29 +80,33 @@
<ion-content class="has-header padding"> <ion-content class="has-header padding">
<p translate>ACCOUNT.NEW.SELECT_ACCOUNT_TYPE</p> <p translate>ACCOUNT.NEW.SELECT_ACCOUNT_TYPE</p>
<div class="list"> <div class="list">
<!-- member account --> <!-- simple wallet -->
<div class="item item-complex card stable-bg item-icon-left item-icon-right ink" <button class="item item-complex card stable-bg item-icon-left item-icon-right ink"
ng-click="selectAccountTypeAndClose('member')"> ng-click="selectAccountTypeAndClose('wallet')">
<div class="item-content item-text-wrap"> <div class="item-content item-text-wrap">
<i class="item-image icon dark ion-card"></i>
<h2 translate>ACCOUNT.NEW.WALLET_ACCOUNT</h2>
<h4 class="gray" translate>ACCOUNT.NEW.WALLET_ACCOUNT_HELP</h4>
<i class="icon dark ion-ios-arrow-right"></i> </div>
</button>
<!-- member account -->
<button class="item item-complex card stable-100-bg item-icon-left item-icon-right ink"
ng-click="selectAccountTypeAndClose('member')"
ng-disabled="$root.config.demo">
<div class="item-content item-text-wrap dark">
<i class="item-image icon dark ion-person"></i> <i class="item-image icon dark ion-person"></i>
<h2 translate>ACCOUNT.NEW.MEMBER_ACCOUNT</h2> <h2 translate>ACCOUNT.NEW.MEMBER_ACCOUNT</h2>
<h4 ng-if="$root.config.demo" style="color: red !important;"><b class="ion-android-warning"></b> <span translate>Not available on this instance</span></h4>
<h4 class="gray" ng-bind-html="'ACCOUNT.NEW.MEMBER_ACCOUNT_HELP'|translate:currency"></h4> <h4 class="gray" ng-bind-html="'ACCOUNT.NEW.MEMBER_ACCOUNT_HELP'|translate:currency"></h4>
<i class="icon dark ion-ios-arrow-right"></i> <i class="icon dark ion-ios-arrow-right" ng-if="!$root.config.demo"></i>
</div> </div>
</div> </button>
<!-- Allow extension here --> <!-- Allow extension here -->
<cs-extension-point name="select-account-type"></cs-extension-point> <cs-extension-point name="select-account-type"></cs-extension-point>
<!-- simple wallet -->
<div class="item item-complex card stable-bg item-icon-left item-icon-right ink"
ng-click="selectAccountTypeAndClose('wallet')">
<div class="item-content item-text-wrap">
<i class="item-image icon dark ion-card"></i>
<h2 translate>ACCOUNT.NEW.WALLET_ACCOUNT</h2>
<h4 class="gray" translate>ACCOUNT.NEW.WALLET_ACCOUNT_HELP</h4>
<i class="icon dark ion-ios-arrow-right"></i> </div>
</div>
</div> </div>
<div class="padding hidden-xs text-right"> <div class="padding hidden-xs text-right">
<button class="button button-clear button-dark ink" ng-click="closeModal()" type="button" translate>COMMON.BTN_CANCEL <button class="button button-clear button-dark ink" ng-click="closeModal()" type="button" translate>COMMON.BTN_CANCEL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment