Commit 2f6b4ca5 authored by sstern's avatar sstern

Rm deprecated syntax for slot-scope in mr_rules

parent 7a5db690
...@@ -108,7 +108,7 @@ export default { ...@@ -108,7 +108,7 @@ export default {
<template> <template>
<rules :rules="rules"> <rules :rules="rules">
<template slot="thead" slot-scope="{ name, members, approvalsRequired }"> <template #thead="{ name, members, approvalsRequired }">
<tr> <tr>
<th :class="hasNamedRule ? 'w-25' : 'w-75'">{{ hasNamedRule ? name : members }}</th> <th :class="hasNamedRule ? 'w-25' : 'w-75'">{{ hasNamedRule ? name : members }}</th>
<th :class="hasNamedRule ? 'w-50' : null"> <th :class="hasNamedRule ? 'w-50' : null">
...@@ -118,7 +118,7 @@ export default { ...@@ -118,7 +118,7 @@ export default {
<th></th> <th></th>
</tr> </tr>
</template> </template>
<template slot="tbody" slot-scope="{ rules }"> <template #tbody="{ rules }">
<template v-for="(rule, index) in rules"> <template v-for="(rule, index) in rules">
<empty-rule <empty-rule
v-if="rule.ruleType === 'any_approver'" v-if="rule.ruleType === 'any_approver'"
...@@ -131,9 +131,7 @@ export default { ...@@ -131,9 +131,7 @@ export default {
<tr v-else :key="index"> <tr v-else :key="index">
<td> <td>
<div class="js-name">{{ rule.name }}</div> <div class="js-name">{{ rule.name }}</div>
<div ref="indicator" class="text-muted"> <div ref="indicator" class="text-muted">{{ indicatorText(rule) }}</div>
{{ indicatorText(rule) }}
</div>
</td> </td>
<td class="js-members" :class="settings.allowMultiRule ? 'd-none d-sm-table-cell' : null"> <td class="js-members" :class="settings.allowMultiRule ? 'd-none d-sm-table-cell' : null">
<user-avatar-list :items="rule.approvers" :img-size="24" /> <user-avatar-list :items="rule.approvers" :img-size="24" />
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment