(cherry picked from commit 0c5684905f44af211189bf674735b046858a5b86) # Conflicts: # frontend/components.d.ts # yarn.lock
20 lines
494 B
Vue
20 lines
494 B
Vue
<template>
|
|
<AssignmentRules v-if="step.screen === 'list'" />
|
|
<AssignmentRuleView v-else-if="step.screen === 'view'" />
|
|
</template>
|
|
|
|
<script setup>
|
|
import { ref, provide } from 'vue'
|
|
import AssignmentRules from './AssignmentRules.vue'
|
|
import AssignmentRuleView from './AssignmentRuleView.vue'
|
|
|
|
const step = ref({ screen: 'list', data: null })
|
|
|
|
provide('step', step)
|
|
provide('updateStep', updateStep)
|
|
|
|
function updateStep(newStep, data) {
|
|
step.value = { screen: newStep, data }
|
|
}
|
|
</script>
|