Skip to content

Commit

Permalink
Merge pull request #7666 from ProcessMaker/bugfix/FOUR-19905
Browse files Browse the repository at this point in the history
FOUR-19905 Show lock icon on remote bundle assets
  • Loading branch information
ryancooley authored Nov 6, 2024
2 parents b43d871 + b3cb2bc commit 7bc3f3a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions resources/js/admin/devlink/components/BundleAssets.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ const computedFields = computed(() => {
return fields.filter(field => field.key !== 'menu');
});
const isLocal = computed(() => {
return bundle.value.dev_link_id === null;
});
const loadAssets = async () => {
loading.value = true;
const response = await window.ProcessMaker.apiClient.get(`/api/1.0/devlink/local-bundles/${bundleId}`);
Expand Down Expand Up @@ -126,6 +130,7 @@ const remove = async (asset) => {
>
<template #cell(name)="data">
<a :href="data.item.url" target="_blank">{{ data.item.name }}</a>
<i v-if="!isLocal" class="ml-2 fa fa-lock"></i>
</template>

<template #cell(menu)="data">
Expand Down
5 changes: 4 additions & 1 deletion resources/js/admin/devlink/components/Instance.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ const load = () => {
ProcessMaker.apiClient
.get(`/devlink/${route.params.id}/remote-bundles?filter=${filter.value}`)
.then((result) => {
bundles.value = result.data.data;
bundles.value = result.data.data.filter(bundle =>{
// Do not show remote bundles
return bundle.dev_link_id === null;
});
loading.value = false;
});
};
Expand Down

0 comments on commit 7bc3f3a

Please sign in to comment.