* change status as admin

feature: #13
This commit is contained in:
2023-01-13 20:56:26 +01:00
parent 155b9f56cd
commit b633c2795b
4 changed files with 116 additions and 2 deletions

View File

@@ -10,7 +10,8 @@
</button>
<button
type="button"
class="inline-block max-sm:mt-3 px-6 mr-3 py-2.5 bg-blue-600 text-white font-medium text-xs rounded shadow-md">
class="inline-block max-sm:mt-3 px-6 mr-3 py-2.5 bg-blue-600 text-white font-medium text-xs rounded shadow-md"
@click="openModal('changeStatus')">
Status wächseln
</button>
<button
@@ -113,6 +114,7 @@
</template>
<script>
import { moveToNextStep } from '../../service/ContractsService'
import { mapActions } from 'vuex'
export default {
props: {
@@ -122,6 +124,7 @@ export default {
}
},
methods: {
...mapActions(['openModal']),
async nextStep() {
await moveToNextStep(this.contract.id)
.then(resp => {