refs #2068 Change edit icon in lists index
This commit is contained in:
parent
4ccde9926f
commit
bd6ca2a4dd
|
@ -2,7 +2,7 @@
|
||||||
<div id="lists">
|
<div id="lists">
|
||||||
<div class="new-list" v-loading="creating" :element-loading-background="loadingBackground">
|
<div class="new-list" v-loading="creating" :element-loading-background="loadingBackground">
|
||||||
<el-form :inline="true">
|
<el-form :inline="true">
|
||||||
<input v-model="title" :placeholder="$t('lists.index.new_list')" class="list-title"></input>
|
<input v-model="title" :placeholder="$t('lists.index.new_list')" class="list-title" />
|
||||||
<el-button type="text" class="create" @click="createList">
|
<el-button type="text" class="create" @click="createList">
|
||||||
<icon name="plus"></icon>
|
<icon name="plus"></icon>
|
||||||
</el-button>
|
</el-button>
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
</router-link>
|
</router-link>
|
||||||
<div class="tools">
|
<div class="tools">
|
||||||
<el-button type="text" @click="edit(list)">
|
<el-button type="text" @click="edit(list)">
|
||||||
{{ $t('lists.index.edit') }}
|
<icon name="regular/edit"></icon>
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -40,8 +40,7 @@ export default {
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.$store.commit('TimelineSpace/changeLoading', true)
|
this.$store.commit('TimelineSpace/changeLoading', true)
|
||||||
this.fetch()
|
this.fetch().finally(() => {
|
||||||
.finally(() => {
|
|
||||||
this.$store.commit('TimelineSpace/changeLoading', false)
|
this.$store.commit('TimelineSpace/changeLoading', false)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -50,8 +49,7 @@ export default {
|
||||||
return this.$route.params.id
|
return this.$route.params.id
|
||||||
},
|
},
|
||||||
fetch() {
|
fetch() {
|
||||||
return this.$store.dispatch('TimelineSpace/Contents/Lists/Index/fetchLists')
|
return this.$store.dispatch('TimelineSpace/Contents/Lists/Index/fetchLists').catch(() => {
|
||||||
.catch(() => {
|
|
||||||
this.$message({
|
this.$message({
|
||||||
message: this.$t('message.lists_fetch_error'),
|
message: this.$t('message.lists_fetch_error'),
|
||||||
type: 'error'
|
type: 'error'
|
||||||
|
|
Loading…
Reference in New Issue