:triggerNumber="newTriggerNumber - 1"
:modal="true"
:ruleBeingEdited="ruleBeingEdited"
:letters="letters"
/>
</div>
<fieldset class="rows">
:triggerNumber="number"
:categories="categories"
:itemTypes="itemTypes"
</template>
import { APIClient } from "../../../fetch/api-client.js"
import TriggersTable from "./TriggersTable.vue"
import { inject } from "vue"
import { storeToRefs } from "pinia"
export default {
setup() {
const { splitCircRulesByTriggerNumber } = inject("circRulesStore")
const circRulesStore = inject("circRulesStore")
const { splitCircRulesByTriggerNumber } = circRulesStore
const { letters } = storeToRefs(circRulesStore)
return {
splitCircRulesByTriggerNumber,
letters,
}
},
data() {
{{ $__("Item type") }}
</th>
<th v-if="modal">
{{ $__("Notice") }}
{{ $__("Rule") }}
<th>
{{ $__("Delay") }}
"
>
{{
rule[
handleNotice(
"overdue_" +
(modal ? i + 1 : triggerNumber) +
"_notice"
]
)
}}
</td>
<td
"ruleBeingEdited",
"categories",
"itemTypes",
"letters",
],
methods: {
handleContext(value, data, type, displayProperty = "name") {
rule[`overdue_${number}_restrict`])
handleNotice(notice) {
const letter = this.letters.find(letter => letter.code === notice)
return letter ? letter.name : notice
</script>
-