mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-27 09:05:01 +00:00
eslint fixes
This commit is contained in:
@@ -1,14 +1,14 @@
|
|||||||
<template>
|
<template>
|
||||||
<location />
|
<location />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Location from "ChillActivityAssets/vuejs/Activity/components/Location.vue";
|
import Location from "ChillActivityAssets/vuejs/Activity/components/Location.vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "App",
|
name: "App",
|
||||||
components: {
|
components: {
|
||||||
Location,
|
Location,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
@@ -12,24 +12,22 @@
|
|||||||
ref="showAddress"
|
ref="showAddress"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- step 1 -->
|
<!-- step 1 -->
|
||||||
<teleport to="body" v-if="inModal">
|
<teleport to="body" v-if="inModal">
|
||||||
<modal
|
<modal
|
||||||
v-if="flag.suggestPane"
|
v-if="flag.suggestPane"
|
||||||
modal-dialog-class="modal-dialog-scrollable modal-xl"
|
modal-dialog-class="modal-dialog-scrollable modal-xl"
|
||||||
@close="resetPane"
|
@close="resetPane"
|
||||||
>
|
>
|
||||||
<template #header>
|
<template #header>
|
||||||
<h2 class="modal-title">
|
<h2 class="modal-title">
|
||||||
{{ trans(getTextTitle) }}
|
{{ trans(getTextTitle) }}
|
||||||
<span v-if="flag.loading" class="loading">
|
<span v-if="flag.loading" class="loading">
|
||||||
<i class="fa fa-circle-o-notch fa-spin fa-fw" />
|
<i class="fa fa-circle-o-notch fa-spin fa-fw" />
|
||||||
<span class="sr-only">{{
|
<span class="sr-only">{{ trans(ADDRESS_LOADING) }}</span>
|
||||||
trans(ADDRESS_LOADING)
|
</span>
|
||||||
}}</span>
|
</h2>
|
||||||
</span>
|
</template>
|
||||||
</h2>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<template #body>
|
<template #body>
|
||||||
<suggest-pane
|
<suggest-pane
|
||||||
@@ -90,9 +88,7 @@
|
|||||||
{{ trans(getTextTitle) }}
|
{{ trans(getTextTitle) }}
|
||||||
<span v-if="flag.loading" class="loading">
|
<span v-if="flag.loading" class="loading">
|
||||||
<i class="fa fa-circle-o-notch fa-spin fa-fw" />
|
<i class="fa fa-circle-o-notch fa-spin fa-fw" />
|
||||||
<span class="sr-only">{{
|
<span class="sr-only">{{ trans(ADDRESS_LOADING) }}</span>
|
||||||
trans(ADDRESS_LOADING)
|
|
||||||
}}</span>
|
|
||||||
</span>
|
</span>
|
||||||
</h2>
|
</h2>
|
||||||
</template>
|
</template>
|
||||||
@@ -175,9 +171,7 @@
|
|||||||
{{ trans(getTextTitle) }}
|
{{ trans(getTextTitle) }}
|
||||||
<span v-if="flag.loading" class="loading">
|
<span v-if="flag.loading" class="loading">
|
||||||
<i class="fa fa-circle-o-notch fa-spin fa-fw" />
|
<i class="fa fa-circle-o-notch fa-spin fa-fw" />
|
||||||
<span class="sr-only">{{
|
<span class="sr-only">{{ trans(ADDRESS_LOADING) }}</span>
|
||||||
trans(ADDRESS_LOADING)
|
|
||||||
}}</span>
|
|
||||||
</span>
|
</span>
|
||||||
</h2>
|
</h2>
|
||||||
</template>
|
</template>
|
||||||
@@ -248,14 +242,14 @@ import {
|
|||||||
} from "../api";
|
} from "../api";
|
||||||
import {
|
import {
|
||||||
CREATE_A_NEW_ADDRESS,
|
CREATE_A_NEW_ADDRESS,
|
||||||
ADDRESS_LOADING,
|
ADDRESS_LOADING,
|
||||||
ACTIVITY_CREATE_ADDRESS,
|
ACTIVITY_CREATE_ADDRESS,
|
||||||
ACTIVITY_EDIT_ADDRESS,
|
ACTIVITY_EDIT_ADDRESS,
|
||||||
CANCEL,
|
CANCEL,
|
||||||
SAVE,
|
SAVE,
|
||||||
PREVIOUS,
|
PREVIOUS,
|
||||||
NEXT,
|
NEXT,
|
||||||
trans,
|
trans,
|
||||||
} from "translator";
|
} from "translator";
|
||||||
import ShowPane from "./ShowPane.vue";
|
import ShowPane from "./ShowPane.vue";
|
||||||
import SuggestPane from "./SuggestPane.vue";
|
import SuggestPane from "./SuggestPane.vue";
|
||||||
@@ -265,16 +259,17 @@ import DatePane from "./DatePane.vue";
|
|||||||
export default {
|
export default {
|
||||||
name: "AddAddress",
|
name: "AddAddress",
|
||||||
setup() {
|
setup() {
|
||||||
return {
|
return {
|
||||||
trans,
|
trans,
|
||||||
CREATE_A_NEW_ADDRESS,
|
CREATE_A_NEW_ADDRESS,
|
||||||
ADDRESS_LOADING,
|
ADDRESS_LOADING,
|
||||||
CANCEL,
|
CANCEL,
|
||||||
SAVE,
|
SAVE,
|
||||||
PREVIOUS,
|
PREVIOUS,
|
||||||
NEXT,
|
NEXT,
|
||||||
};
|
};
|
||||||
},props: ["context", "options", "addressChangedCallback"],
|
},
|
||||||
|
props: ["context", "options", "addressChangedCallback"],
|
||||||
components: {
|
components: {
|
||||||
Modal,
|
Modal,
|
||||||
ShowPane,
|
ShowPane,
|
||||||
@@ -394,9 +389,9 @@ export default {
|
|||||||
) {
|
) {
|
||||||
console.log("this.options.title", this.options.title);
|
console.log("this.options.title", this.options.title);
|
||||||
|
|
||||||
return this.context.edit
|
return this.context.edit
|
||||||
? ACTIVITY_EDIT_ADDRESS
|
? ACTIVITY_EDIT_ADDRESS
|
||||||
: ACTIVITY_CREATE_ADDRESS;
|
: ACTIVITY_CREATE_ADDRESS;
|
||||||
}
|
}
|
||||||
return this.context.edit
|
return this.context.edit
|
||||||
? this.defaultz.title.edit
|
? this.defaultz.title.edit
|
||||||
|
@@ -55,9 +55,7 @@
|
|||||||
:placeholder="trans(ADDRESS_BUILDING_NAME)"
|
:placeholder="trans(ADDRESS_BUILDING_NAME)"
|
||||||
v-model="buildingName"
|
v-model="buildingName"
|
||||||
/>
|
/>
|
||||||
<label for="buildingName">{{
|
<label for="buildingName">{{ trans(ADDRESS_BUILDING_NAME) }}</label>
|
||||||
trans(ADDRESS_BUILDING_NAME)
|
|
||||||
}}</label>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-floating my-1">
|
<div class="form-floating my-1">
|
||||||
<input
|
<input
|
||||||
@@ -79,9 +77,7 @@
|
|||||||
:placeholder="trans(ADDRESS_DISTRIBUTION)"
|
:placeholder="trans(ADDRESS_DISTRIBUTION)"
|
||||||
v-model="distribution"
|
v-model="distribution"
|
||||||
/>
|
/>
|
||||||
<label for="distribution">{{
|
<label for="distribution">{{ trans(ADDRESS_DISTRIBUTION) }}</label>
|
||||||
trans(ADDRESS_DISTRIBUTION)
|
|
||||||
}}</label>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -89,35 +85,36 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
ADDRESS_STREET,
|
ADDRESS_STREET,
|
||||||
ADDRESS_STREET_NUMBER,
|
ADDRESS_STREET_NUMBER,
|
||||||
ADDRESS_FLOOR,
|
ADDRESS_FLOOR,
|
||||||
ADDRESS_CORRIDOR,
|
ADDRESS_CORRIDOR,
|
||||||
ADDRESS_STEPS,
|
ADDRESS_STEPS,
|
||||||
ADDRESS_FLAT,
|
ADDRESS_FLAT,
|
||||||
ADDRESS_BUILDING_NAME,
|
ADDRESS_BUILDING_NAME,
|
||||||
ADDRESS_DISTRIBUTION,
|
ADDRESS_DISTRIBUTION,
|
||||||
ADDRESS_EXTRA,
|
ADDRESS_EXTRA,
|
||||||
ADDRESS_FILL_AN_ADDRESS,
|
ADDRESS_FILL_AN_ADDRESS,
|
||||||
trans,
|
trans,
|
||||||
} from "translator";
|
} from "translator";
|
||||||
export default {
|
export default {
|
||||||
name: "AddressMore",
|
name: "AddressMore",
|
||||||
setup() {
|
setup() {
|
||||||
return {
|
return {
|
||||||
ADDRESS_STREET,
|
ADDRESS_STREET,
|
||||||
ADDRESS_STREET_NUMBER,
|
ADDRESS_STREET_NUMBER,
|
||||||
ADDRESS_FLOOR,
|
ADDRESS_FLOOR,
|
||||||
ADDRESS_CORRIDOR,
|
ADDRESS_CORRIDOR,
|
||||||
ADDRESS_STEPS,
|
ADDRESS_STEPS,
|
||||||
ADDRESS_FLAT,
|
ADDRESS_FLAT,
|
||||||
ADDRESS_BUILDING_NAME,
|
ADDRESS_BUILDING_NAME,
|
||||||
ADDRESS_DISTRIBUTION,
|
ADDRESS_DISTRIBUTION,
|
||||||
ADDRESS_EXTRA,
|
ADDRESS_EXTRA,
|
||||||
ADDRESS_FILL_AN_ADDRESS,
|
ADDRESS_FILL_AN_ADDRESS,
|
||||||
trans,
|
trans,
|
||||||
};
|
};
|
||||||
},props: ["entity", "isNoAddress"],
|
},
|
||||||
|
props: ["entity", "isNoAddress"],
|
||||||
computed: {
|
computed: {
|
||||||
floor: {
|
floor: {
|
||||||
set(value) {
|
set(value) {
|
||||||
|
@@ -57,9 +57,7 @@
|
|||||||
:placeholder="trans(ADDRESS_STREET_NUMBER)"
|
:placeholder="trans(ADDRESS_STREET_NUMBER)"
|
||||||
v-model="streetNumber"
|
v-model="streetNumber"
|
||||||
/>
|
/>
|
||||||
<label for="streetNumber">{{
|
<label for="streetNumber">{{ trans(ADDRESS_STREET_NUMBER) }}</label>
|
||||||
trans(ADDRESS_STREET_NUMBER)
|
|
||||||
}}</label>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -72,31 +70,32 @@ import {
|
|||||||
fetchReferenceAddresses,
|
fetchReferenceAddresses,
|
||||||
} from "../../api.js";
|
} from "../../api.js";
|
||||||
import {
|
import {
|
||||||
ADDRESS_STREET,
|
ADDRESS_STREET,
|
||||||
ADDRESS_STREET_NUMBER,
|
ADDRESS_STREET_NUMBER,
|
||||||
ADDRESS_ADDRESS,
|
ADDRESS_ADDRESS,
|
||||||
MULTISELECT_SELECTED_LABEL,
|
MULTISELECT_SELECTED_LABEL,
|
||||||
MULTISELECT_SELECT_LABEL,
|
MULTISELECT_SELECT_LABEL,
|
||||||
ADDRESS_SELECT_ADDRESS,
|
ADDRESS_SELECT_ADDRESS,
|
||||||
ADDRESS_CREATE_ADDRESS,
|
ADDRESS_CREATE_ADDRESS,
|
||||||
trans,
|
trans,
|
||||||
} from "translator";
|
} from "translator";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "AddressSelection",
|
name: "AddressSelection",
|
||||||
components: { VueMultiselect },
|
components: { VueMultiselect },
|
||||||
setup() {
|
setup() {
|
||||||
return {
|
return {
|
||||||
ADDRESS_STREET,
|
ADDRESS_STREET,
|
||||||
ADDRESS_STREET_NUMBER,
|
ADDRESS_STREET_NUMBER,
|
||||||
ADDRESS_ADDRESS,
|
ADDRESS_ADDRESS,
|
||||||
MULTISELECT_SELECTED_LABEL,
|
MULTISELECT_SELECTED_LABEL,
|
||||||
MULTISELECT_SELECT_LABEL,
|
MULTISELECT_SELECT_LABEL,
|
||||||
ADDRESS_SELECT_ADDRESS,
|
ADDRESS_SELECT_ADDRESS,
|
||||||
ADDRESS_CREATE_ADDRESS,
|
ADDRESS_CREATE_ADDRESS,
|
||||||
trans,
|
trans,
|
||||||
};
|
};
|
||||||
},props: ["entity", "context", "updateMapCenter", "flag", "checkErrors"],
|
},
|
||||||
|
props: ["entity", "context", "updateMapCenter", "flag", "checkErrors"],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
value: this.context.edit ? this.entity.address.addressReference : null,
|
value: this.context.edit ? this.entity.address.addressReference : null,
|
||||||
|
@@ -61,31 +61,32 @@
|
|||||||
import VueMultiselect from "vue-multiselect";
|
import VueMultiselect from "vue-multiselect";
|
||||||
import { searchCities, fetchCities } from "../../api.js";
|
import { searchCities, fetchCities } from "../../api.js";
|
||||||
import {
|
import {
|
||||||
MULTISELECT_SELECTED_LABEL,
|
MULTISELECT_SELECTED_LABEL,
|
||||||
MULTISELECT_SELECT_LABEL,
|
MULTISELECT_SELECT_LABEL,
|
||||||
ADDRESS_POSTAL_CODE_CODE,
|
ADDRESS_POSTAL_CODE_CODE,
|
||||||
ADDRESS_POSTAL_CODE_NAME,
|
ADDRESS_POSTAL_CODE_NAME,
|
||||||
ADDRESS_CREATE_POSTAL_CODE,
|
ADDRESS_CREATE_POSTAL_CODE,
|
||||||
ADDRESS_CITY,
|
ADDRESS_CITY,
|
||||||
ADDRESS_SELECT_CITY,
|
ADDRESS_SELECT_CITY,
|
||||||
trans,
|
trans,
|
||||||
} from "translator";
|
} from "translator";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "CitySelection",
|
name: "CitySelection",
|
||||||
components: { VueMultiselect },
|
components: { VueMultiselect },
|
||||||
setup() {
|
setup() {
|
||||||
return {
|
return {
|
||||||
MULTISELECT_SELECTED_LABEL,
|
MULTISELECT_SELECTED_LABEL,
|
||||||
MULTISELECT_SELECT_LABEL,
|
MULTISELECT_SELECT_LABEL,
|
||||||
ADDRESS_CITY,
|
ADDRESS_CITY,
|
||||||
ADDRESS_SELECT_CITY,
|
ADDRESS_SELECT_CITY,
|
||||||
ADDRESS_POSTAL_CODE_CODE,
|
ADDRESS_POSTAL_CODE_CODE,
|
||||||
ADDRESS_POSTAL_CODE_NAME,
|
ADDRESS_POSTAL_CODE_NAME,
|
||||||
ADDRESS_CREATE_POSTAL_CODE,
|
ADDRESS_CREATE_POSTAL_CODE,
|
||||||
trans,
|
trans,
|
||||||
};
|
};
|
||||||
},props: [
|
},
|
||||||
|
props: [
|
||||||
"entity",
|
"entity",
|
||||||
"context",
|
"context",
|
||||||
"focusOnAddress",
|
"focusOnAddress",
|
||||||
|
@@ -24,27 +24,28 @@
|
|||||||
import VueMultiselect from "vue-multiselect";
|
import VueMultiselect from "vue-multiselect";
|
||||||
import { localizeString } from "ChillMainAssets/lib/localizationHelper/localizationHelper";
|
import { localizeString } from "ChillMainAssets/lib/localizationHelper/localizationHelper";
|
||||||
import {
|
import {
|
||||||
MULTISELECT_SELECTED_LABEL,
|
MULTISELECT_SELECTED_LABEL,
|
||||||
MULTISELECT_SELECT_LABEL,
|
MULTISELECT_SELECT_LABEL,
|
||||||
MULTISELECT_DESELECT_LABEL,
|
MULTISELECT_DESELECT_LABEL,
|
||||||
ADDRESS_COUNTRY,
|
ADDRESS_COUNTRY,
|
||||||
ADDRESS_SELECT_COUNTRY,
|
ADDRESS_SELECT_COUNTRY,
|
||||||
trans,
|
trans,
|
||||||
} from "translator";
|
} from "translator";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "CountrySelection",
|
name: "CountrySelection",
|
||||||
components: { VueMultiselect },
|
components: { VueMultiselect },
|
||||||
setup() {
|
setup() {
|
||||||
return {
|
return {
|
||||||
MULTISELECT_SELECTED_LABEL,
|
MULTISELECT_SELECTED_LABEL,
|
||||||
MULTISELECT_SELECT_LABEL,
|
MULTISELECT_SELECT_LABEL,
|
||||||
MULTISELECT_DESELECT_LABEL,
|
MULTISELECT_DESELECT_LABEL,
|
||||||
ADDRESS_COUNTRY,
|
ADDRESS_COUNTRY,
|
||||||
ADDRESS_SELECT_COUNTRY,
|
ADDRESS_SELECT_COUNTRY,
|
||||||
trans,
|
trans,
|
||||||
};
|
};
|
||||||
},props: ["context", "entity", "flag", "checkErrors"],
|
},
|
||||||
|
props: ["context", "entity", "flag", "checkErrors"],
|
||||||
emits: ["getCities"],
|
emits: ["getCities"],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@@ -106,10 +106,10 @@ import AddressMap from "./AddAddress/AddressMap";
|
|||||||
import AddressMore from "./AddAddress/AddressMore";
|
import AddressMore from "./AddAddress/AddressMore";
|
||||||
import ActionButtons from "./ActionButtons.vue";
|
import ActionButtons from "./ActionButtons.vue";
|
||||||
import {
|
import {
|
||||||
ADDRESS_SELECT_AN_ADDRESS_TITLE,
|
ADDRESS_SELECT_AN_ADDRESS_TITLE,
|
||||||
ADDRESS_IS_CONFIDENTIAL,
|
ADDRESS_IS_CONFIDENTIAL,
|
||||||
ADDRESS_IS_NO_ADDRESS,
|
ADDRESS_IS_NO_ADDRESS,
|
||||||
trans,
|
trans,
|
||||||
} from "translator";
|
} from "translator";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -123,13 +123,14 @@ export default {
|
|||||||
ActionButtons,
|
ActionButtons,
|
||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
return {
|
return {
|
||||||
trans,
|
trans,
|
||||||
ADDRESS_SELECT_AN_ADDRESS_TITLE,
|
ADDRESS_SELECT_AN_ADDRESS_TITLE,
|
||||||
ADDRESS_IS_CONFIDENTIAL,
|
ADDRESS_IS_CONFIDENTIAL,
|
||||||
ADDRESS_IS_NO_ADDRESS,
|
ADDRESS_IS_NO_ADDRESS,
|
||||||
};
|
};
|
||||||
},props: [
|
},
|
||||||
|
props: [
|
||||||
"context",
|
"context",
|
||||||
"options",
|
"options",
|
||||||
"defaultz",
|
"defaultz",
|
||||||
|
@@ -11,9 +11,7 @@
|
|||||||
|
|
||||||
<div v-if="flag.success" class="alert alert-success">
|
<div v-if="flag.success" class="alert alert-success">
|
||||||
{{ trans(getSuccessText) }}
|
{{ trans(getSuccessText) }}
|
||||||
<span v-if="forceRedirect">{{
|
<span v-if="forceRedirect">{{ trans(ADDRESS_WAIT_REDIRECTION) }}</span>
|
||||||
trans(ADDRESS_WAIT_REDIRECTION)
|
|
||||||
}}</span>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
@@ -101,34 +99,36 @@
|
|||||||
import AddressRenderBox from "ChillMainAssets/vuejs/_components/Entity/AddressRenderBox.vue";
|
import AddressRenderBox from "ChillMainAssets/vuejs/_components/Entity/AddressRenderBox.vue";
|
||||||
import ActionButtons from "./ActionButtons.vue";
|
import ActionButtons from "./ActionButtons.vue";
|
||||||
import {
|
import {
|
||||||
ACTIVITY_CREATE_ADDRESS,
|
ACTIVITY_CREATE_ADDRESS,
|
||||||
ACTIVITY_EDIT_ADDRESS,
|
ACTIVITY_EDIT_ADDRESS,
|
||||||
ADDRESS_NOT_YET_ADDRESS,
|
ADDRESS_NOT_YET_ADDRESS,
|
||||||
ADDRESS_WAIT_REDIRECTION,
|
ADDRESS_WAIT_REDIRECTION,
|
||||||
ADDRESS_LOADING,
|
ADDRESS_LOADING,
|
||||||
ADDRESS_ADDRESS_EDIT_SUCCESS,
|
ADDRESS_ADDRESS_EDIT_SUCCESS,
|
||||||
ADDRESS_ADDRESS_NEW_SUCCESS,
|
ADDRESS_ADDRESS_NEW_SUCCESS,
|
||||||
trans,
|
trans,
|
||||||
} from "translator";
|
} from "translator";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "ShowPane",
|
name: "ShowPane",
|
||||||
methods: {},components: {
|
methods: {},
|
||||||
|
components: {
|
||||||
AddressRenderBox,
|
AddressRenderBox,
|
||||||
ActionButtons,
|
ActionButtons,
|
||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
return {
|
return {
|
||||||
trans,
|
trans,
|
||||||
ACTIVITY_CREATE_ADDRESS,
|
ACTIVITY_CREATE_ADDRESS,
|
||||||
ACTIVITY_EDIT_ADDRESS,
|
ACTIVITY_EDIT_ADDRESS,
|
||||||
ADDRESS_NOT_YET_ADDRESS,
|
ADDRESS_NOT_YET_ADDRESS,
|
||||||
ADDRESS_WAIT_REDIRECTION,
|
ADDRESS_WAIT_REDIRECTION,
|
||||||
ADDRESS_LOADING,
|
ADDRESS_LOADING,
|
||||||
ADDRESS_ADDRESS_NEW_SUCCESS,
|
ADDRESS_ADDRESS_NEW_SUCCESS,
|
||||||
ADDRESS_ADDRESS_EDIT_SUCCESS,
|
ADDRESS_ADDRESS_EDIT_SUCCESS,
|
||||||
};
|
};
|
||||||
},props: [
|
},
|
||||||
|
props: [
|
||||||
"context",
|
"context",
|
||||||
"defaultz",
|
"defaultz",
|
||||||
"options",
|
"options",
|
||||||
@@ -169,17 +169,19 @@ export default {
|
|||||||
this.options.button.text.create !== null)
|
this.options.button.text.create !== null)
|
||||||
) {
|
) {
|
||||||
// console.log('this.options.button.text', this.options.button.text)
|
// console.log('this.options.button.text', this.options.button.text)
|
||||||
return this.context.edit
|
return this.context.edit
|
||||||
? ACTIVITY_CREATE_ADDRESS
|
? ACTIVITY_CREATE_ADDRESS
|
||||||
: ACTIVITY_EDIT_ADDRESS;
|
: ACTIVITY_EDIT_ADDRESS;
|
||||||
}
|
}
|
||||||
console.log("defaultz", this.defaultz);
|
console.log("defaultz", this.defaultz);
|
||||||
return this.context.edit
|
return this.context.edit
|
||||||
? this.defaultz.button.text.edit
|
? this.defaultz.button.text.edit
|
||||||
: this.defaultz.button.text.create;
|
: this.defaultz.button.text.create;
|
||||||
},
|
},
|
||||||
getSuccessText() {
|
getSuccessText() {
|
||||||
return this.context.edit ? ADDRESS_ADDRESS_EDIT_SUCCESS : ADDRESS_ADDRESS_NEW_SUCCESS;
|
return this.context.edit
|
||||||
|
? ADDRESS_ADDRESS_EDIT_SUCCESS
|
||||||
|
: ADDRESS_ADDRESS_NEW_SUCCESS;
|
||||||
},
|
},
|
||||||
onlyButton() {
|
onlyButton() {
|
||||||
return typeof this.options.onlyButton !== "undefined"
|
return typeof this.options.onlyButton !== "undefined"
|
||||||
|
Reference in New Issue
Block a user