|
Lines 75-80
Link Here
|
| 75 |
>{{ $__("Uncertain prices") }}</a |
75 |
>{{ $__("Uncertain prices") }}</a |
| 76 |
> |
76 |
> |
| 77 |
</li> |
77 |
</li> |
|
|
78 |
<li v-if="ermModule && (erm || isUserPermitted('CAN_user_erm'))"> |
| 79 |
<a |
| 80 |
:href="`/cgi-bin/koha/erm/agreements?vendor_id=${vendorId}`" |
| 81 |
>{{ $__("ERM agreements") }}</a |
| 82 |
> |
| 83 |
</li> |
| 84 |
<li v-if="ermModule && (erm || isUserPermitted('CAN_user_erm'))"> |
| 85 |
<a :href="`/cgi-bin/koha/erm/licenses?vendor_id=${vendorId}`">{{ |
| 86 |
$__("ERM licenses") |
| 87 |
}}</a> |
| 88 |
</li> |
| 78 |
</ul> |
89 |
</ul> |
| 79 |
</div> |
90 |
</div> |
| 80 |
</template> |
91 |
</template> |
|
Lines 103-116
export default {
Link Here
|
| 103 |
issuemanage: { |
114 |
issuemanage: { |
| 104 |
type: String, |
115 |
type: String, |
| 105 |
}, |
116 |
}, |
|
|
117 |
ermmodule: { |
| 118 |
type: String, |
| 119 |
}, |
| 120 |
erm: { |
| 121 |
type: String, |
| 122 |
}, |
| 106 |
}, |
123 |
}, |
| 107 |
setup(props) { |
124 |
setup(props) { |
| 108 |
const vendorStore = inject("vendorStore"); |
125 |
const vendorStore = inject("vendorStore"); |
| 109 |
const { isUserPermitted } = vendorStore; |
126 |
const { isUserPermitted, config } = vendorStore; |
| 110 |
const navigationStore = inject("navigationStore"); |
127 |
const navigationStore = inject("navigationStore"); |
| 111 |
const { params } = storeToRefs(navigationStore); |
128 |
const { params } = storeToRefs(navigationStore); |
| 112 |
|
129 |
|
| 113 |
const vendorId = ref(props.vendorid || params.value.id); |
130 |
const vendorId = ref(props.vendorid || params.value.id); |
|
|
131 |
const ermModule = props.ermmodule |
| 132 |
? props.ermmodule |
| 133 |
: config.settings.ermModule; |
| 114 |
const templateRefs = ref([]); |
134 |
const templateRefs = ref([]); |
| 115 |
|
135 |
|
| 116 |
onMounted(() => { |
136 |
onMounted(() => { |
|
Lines 123-128
export default {
Link Here
|
| 123 |
return { |
143 |
return { |
| 124 |
isUserPermitted, |
144 |
isUserPermitted, |
| 125 |
params, |
145 |
params, |
|
|
146 |
config, |
| 147 |
ermModule, |
| 126 |
vendorId, |
148 |
vendorId, |
| 127 |
templateRefs, |
149 |
templateRefs, |
| 128 |
}; |
150 |
}; |