Update widget width
This commit is contained in:
parent
348e9198b6
commit
bf01143e4c
|
|
@ -34,8 +34,7 @@
|
|||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import "@/styles/_variables.scss";
|
||||
@import "@/styles/_mixins.scss";
|
||||
@import "~styles/helpers";
|
||||
|
||||
.more-options {
|
||||
display: flex;
|
||||
|
|
@ -58,7 +57,7 @@
|
|||
}
|
||||
|
||||
&__popover {
|
||||
width: 180px;
|
||||
min-width: 200px;
|
||||
@include popover-defaults();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,13 +6,15 @@
|
|||
class="project-entry__more"
|
||||
data-cy="project-entry-more"
|
||||
v-if="!readOnly">
|
||||
<li class="popover-links__link"><a
|
||||
data-cy="edit-project-entry"
|
||||
@click="editProjectEntry()">Eintrag bearbeiten</a>
|
||||
<li class="popover-links__link">
|
||||
<a
|
||||
data-cy="edit-project-entry"
|
||||
@click="editProjectEntry()">Eintrag bearbeiten</a>
|
||||
</li>
|
||||
<li class="popover-links__link"><a
|
||||
data-cy="delete-project-entry"
|
||||
@click="deleteProjectEntry()">Eintrag löschen</a>
|
||||
<li class="popover-links__link">
|
||||
<a
|
||||
data-cy="delete-project-entry"
|
||||
@click="deleteProjectEntry()">Eintrag löschen</a>
|
||||
</li>
|
||||
</more-options-widget>
|
||||
|
||||
|
|
@ -46,7 +48,7 @@
|
|||
props: ['description', 'documentUrl', 'created', 'id', 'readOnly'],
|
||||
components: {
|
||||
DocumentBlock,
|
||||
MoreOptionsWidget
|
||||
MoreOptionsWidget,
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
|
@ -59,14 +61,14 @@
|
|||
mutation: DELETE_PROJECT_ENTRY_MUTATION,
|
||||
variables: {
|
||||
input: {
|
||||
id: this.id
|
||||
}
|
||||
id: this.id,
|
||||
},
|
||||
},
|
||||
update(store, {data: {deleteProjectEntry: {success}}}) {
|
||||
if (success) {
|
||||
const query = PROJECT_QUERY;
|
||||
const variables = {
|
||||
slug: projectEntry.$route.params.slug
|
||||
slug: projectEntry.$route.params.slug,
|
||||
};
|
||||
const data = store.readQuery({query, variables});
|
||||
if (data) {
|
||||
|
|
@ -74,10 +76,10 @@
|
|||
store.writeQuery({query, variables, data});
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue