Skip to content

Commit 50637dd

Browse files
committed
1 parent 176f053 commit 50637dd

3 files changed

Lines changed: 20 additions & 18 deletions

File tree

src/main/malewicz/src/components/ObjectsTablePanel.vue

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,7 @@ export default {
151151
return this.meta.metadata
152152
}
153153
},
154-
uri123() {
155-
console.log("AAAAAAAAAAAAA")
154+
completeUri() {
156155
return this.$store.getters.getUri
157156
},
158157
typeUri () {
@@ -171,18 +170,9 @@ export default {
171170
}
172171
},
173172
watch: {
174-
getSort(newValue) {
175-
if (newValue.descending === true) {
176-
this.$store.commit('setSort', { "field": newValue.sortBy, "ord": "desc" })
177-
} else if (newValue.descending === false) {
178-
this.$store.commit('setSort', { "field": newValue.sortBy, "ord": "asc" })
179-
} else {
180-
this.$store.commit('setSort', {})
181-
}
182-
},
183-
uri123: {
173+
completeUri: {
184174
handler(newVal, oldVal) {
185-
console.log("EEEEEEEEEEEEEEEEEEEEEEEEEEEEE " + newVal)
175+
console.log("RRRRRRRRRRRRRRRRRR - " + JSON.stringify(newVal))
186176
},
187177
deep: true,
188178
},
@@ -210,6 +200,15 @@ export default {
210200
this.isLoading = false
211201
}
212202
)
203+
},
204+
getSort(newValue) {
205+
if (newValue.descending === true) {
206+
this.$store.commit('setSort', { "field": newValue.sortBy, "ord": "desc" })
207+
} else if (newValue.descending === false) {
208+
this.$store.commit('setSort', { "field": newValue.sortBy, "ord": "asc" })
209+
} else {
210+
this.$store.commit('setSort', {})
211+
}
213212
}
214213
},
215214
methods: {

src/main/malewicz/src/components/TypesListPanel.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,7 @@
6363
return this.$store.state.uri.type === type.name
6464
},
6565
setType(type) {
66-
this.$store.commit('setType', type)
67-
this.$store.commit('setSort', '')
68-
this.$store.commit('pageNumber', 1)
69-
this.$store.commit('setPageCount', 1)
70-
this.$store.commit('setPath', "")
66+
this.$store.commit('skipObjectUri', type)
7167
}
7268
},
7369
computed: {

src/main/malewicz/src/main.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,13 @@ const store = new Vuex.Store({
112112
}
113113
},
114114
mutations: {
115+
setUri (state, uri) {
116+
state.uri = uri
117+
},
118+
skipObjectUri (state, type) {
119+
const c = state.uri.connections
120+
state.uri = { "connections": c, "type": type, "path": [], "orderby": {}, page: { 'number': 1, 'size': 15, 'count': 1 }}
121+
},
115122
setType (state, typeName) {
116123
state.uri.type = typeName
117124
},

0 commit comments

Comments
 (0)