Removes 'Clear value' option of bulk edition for author metadata #354.
This commit is contained in:
parent
89cb4f32bd
commit
82183fd486
|
@ -34,7 +34,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapActions, mapGetters } from 'vuex';
|
import { mapActions } from 'vuex';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
|
@ -75,7 +75,7 @@ export default {
|
||||||
.catch(() => this.isLoadingCurrentUser = false );
|
.catch(() => this.isLoadingCurrentUser = false );
|
||||||
},
|
},
|
||||||
loadUsers: _.debounce(function (search) {
|
loadUsers: _.debounce(function (search) {
|
||||||
console.log(search)
|
|
||||||
// String update
|
// String update
|
||||||
if (search != this.usersSearchQuery) {
|
if (search != this.usersSearchQuery) {
|
||||||
this.usersSearchQuery = search;
|
this.usersSearchQuery = search;
|
||||||
|
|
|
@ -533,7 +533,12 @@
|
||||||
let validEditionActions = {};
|
let validEditionActions = {};
|
||||||
|
|
||||||
for (let [actionKey, action] of Object.entries(isMultiple ? this.editionActionsForMultiple : this.editionActionsForNotMultiple)) {
|
for (let [actionKey, action] of Object.entries(isMultiple ? this.editionActionsForMultiple : this.editionActionsForNotMultiple)) {
|
||||||
if ((metadatumID != 'status' && metadatumID != 'comments') || actionKey != 'clear')
|
if ( (metadatumID != 'status' &&
|
||||||
|
metadatumID != 'comments' &&
|
||||||
|
(this.getMetadataByID(metadatumID) && this.getMetadataByID(metadatumID).metadata_type_object && this.getMetadataByID(metadatumID).metadata_type_object.component !== 'tainacan-author')
|
||||||
|
) ||
|
||||||
|
actionKey != 'clear'
|
||||||
|
)
|
||||||
validEditionActions[actionKey] = action;
|
validEditionActions[actionKey] = action;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue