#1306 Renombrar controladores, rutas y carpetas
This commit is contained in:
parent
85851e7a33
commit
9baa37b833
|
@ -218,7 +218,7 @@ export default {
|
|||
navigateBackToIndex: 'vn-item-descriptor vn-icon[icon="chevron_left"]'
|
||||
},
|
||||
itemBasicData: {
|
||||
basicDataButton: `vn-left-menu a[ui-sref="item.card.data"]`,
|
||||
basicDataButton: `vn-left-menu a[ui-sref="item.card.basicData"]`,
|
||||
goToItemIndexButton: 'vn-item-descriptor [ui-sref="item.index"]',
|
||||
typeAutocomplete: `vn-autocomplete[field="$ctrl.item.typeFk"]`,
|
||||
intrastatAutocomplete: `vn-autocomplete[field="$ctrl.item.intrastatFk"]`,
|
||||
|
|
|
@ -8,7 +8,7 @@ describe('Item Edit basic data path', () => {
|
|||
nightmare
|
||||
.loginAndModule('buyer', 'item')
|
||||
.accessToSearchResult('Melee weapon combat first 15cm')
|
||||
.accessToSection('item.card.data');
|
||||
.accessToSection('item.card.basicData');
|
||||
});
|
||||
|
||||
it(`should check the descritor edit button is visible for buyer`, async() => {
|
||||
|
@ -39,7 +39,7 @@ describe('Item Edit basic data path', () => {
|
|||
|
||||
it(`should confirm the item name was edited`, async() => {
|
||||
const result = await nightmare
|
||||
.reloadSection('item.card.data')
|
||||
.reloadSection('item.card.basicData')
|
||||
.waitToGetProperty(selectors.itemBasicData.nameInput, 'value');
|
||||
|
||||
expect(result).toEqual('Rose of Purity');
|
||||
|
|
|
@ -7,7 +7,7 @@ describe('Item descriptor path', () => {
|
|||
nightmare
|
||||
.loginAndModule('buyer', 'item')
|
||||
.accessToSearchResult(1)
|
||||
.accessToSection('item.card.data');
|
||||
.accessToSection('item.card.basicData');
|
||||
});
|
||||
|
||||
it('should check the descriptor inactive icon is dark as the item is active', async() => {
|
||||
|
@ -30,7 +30,7 @@ describe('Item descriptor path', () => {
|
|||
|
||||
it('should reload the section and check the inactive icon is bright', async() => {
|
||||
let brightIcon = await nightmare
|
||||
.reloadSection('item.card.data')
|
||||
.reloadSection('item.card.basicData')
|
||||
.waitForClassPresent(selectors.itemDescriptor.inactiveIcon, 'bright')
|
||||
.isVisible(selectors.itemDescriptor.inactiveIcon);
|
||||
|
||||
|
|
|
@ -76,7 +76,6 @@
|
|||
label="Density"
|
||||
field="$ctrl.item.density">
|
||||
</vn-input-number>
|
||||
<!-- <vn-textfield vn-one label="compression" field="$ctrl.item.compression"></vn-textfield> -->
|
||||
<vn-input-number vn-one min="0"
|
||||
label="Relevancy"
|
||||
field="$ctrl.item.relevancy">
|
|
@ -15,7 +15,7 @@ class Controller {
|
|||
|
||||
Controller.$inject = ['$scope', '$timeout'];
|
||||
|
||||
ngModule.component('vnItemData', {
|
||||
ngModule.component('vnItemBasicData', {
|
||||
template: require('./index.html'),
|
||||
bindings: {
|
||||
item: '<'
|
|
@ -11,7 +11,7 @@ class Controller {
|
|||
|
||||
onSubmit() {
|
||||
this.$.watcher.submit().then(
|
||||
json => this.$state.go('item.card.data', {id: json.data.id})
|
||||
json => this.$state.go('item.card.basicData', {id: json.data.id})
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@ describe('Item', () => {
|
|||
spyOn($state, 'go');
|
||||
controller.onSubmit();
|
||||
|
||||
expect(controller.$state.go).toHaveBeenCalledWith('item.card.data', {id: 1});
|
||||
expect(controller.$state.go).toHaveBeenCalledWith('item.card.basicData', {id: 1});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -7,7 +7,7 @@ import './create';
|
|||
import './card';
|
||||
import './descriptor';
|
||||
import './descriptor-popover';
|
||||
import './data';
|
||||
import './basic-data';
|
||||
import './fetched-tags';
|
||||
import './tags';
|
||||
import './tax';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"validations" : true,
|
||||
"dependencies": ["worker", "client", "ticket"],
|
||||
"menu": [
|
||||
{"state": "item.card.data", "icon": "settings"},
|
||||
{"state": "item.card.basicData", "icon": "settings"},
|
||||
{"state": "item.card.tags", "icon": "icon-tags"},
|
||||
{"state": "item.card.tax", "icon": "icon-tax"},
|
||||
{"state": "item.card.niche", "icon": "place"},
|
||||
|
@ -41,9 +41,9 @@
|
|||
"abstract": true,
|
||||
"component": "vn-item-card"
|
||||
}, {
|
||||
"url" : "/data",
|
||||
"state": "item.card.data",
|
||||
"component": "vn-item-data",
|
||||
"url" : "/basic-data",
|
||||
"state": "item.card.basicData",
|
||||
"component": "vn-item-basic-data",
|
||||
"description": "Basic data",
|
||||
"params": {
|
||||
"item": "$ctrl.item"
|
||||
|
|
Loading…
Reference in New Issue