sajjad 3 years ago
commit 899835ebf1

@ -1,14 +1,6 @@
<template> <template>
<div> <div>
<div class="wa__program__images"> <div class="wa__program__images">
<!-- <div
class="wa__program__image"
:style="{
backgroundImage: `url('${
program.thumbnail ? program.thumbnail : `http://via.placeholder.com/200`
}')`,
}"
></div> -->
<img <img
class="wa__program__image w-100" class="wa__program__image w-100"
:src=" :src="
@ -18,14 +10,6 @@
/> />
<div class="wa__program__image__button"> <div class="wa__program__image__button">
<div class="wa__program__image__button--icon"> <div class="wa__program__image__button--icon">
<RectangleButton
v-if="role === 'admin'"
@click.native="verifyProgram(program.id)"
size="large"
class="custom-btn ml-1"
height="32"
:icon="program.verified ? 'WMi-cancel' : 'WMi-ok'"
/>
<router-link <router-link
class="text-decoration-none" class="text-decoration-none"
:to="{ name: 'programSeries', params: { id: program.id } }" :to="{ name: 'programSeries', params: { id: program.id } }"
@ -106,6 +90,10 @@ export default {
this.deleteProgram(id); this.deleteProgram(id);
}); });
}, },
async verify() {
await this.verifyProgram(this.program.id);
this.program.verified = !this.program.verified;
},
}, },
}; };
</script> </script>
@ -128,6 +116,7 @@ export default {
text-overflow: ellipsis; text-overflow: ellipsis;
word-wrap: break-word; word-wrap: break-word;
overflow: hidden; overflow: hidden;
margin-top: -2px;
} }
.wa__program__images { .wa__program__images {
@ -159,3 +148,9 @@ export default {
width: max-content; width: max-content;
} }
</style> </style>
<style>
.shrink .v-input__slot i {
color: var(--color-white);
font-size: 20px;
}
</style>

Loading…
Cancel
Save