Skip to content

Commit

Permalink
feat: Implement new UI for user who can publish news when no settings…
Browse files Browse the repository at this point in the history
… are configured - EXO-65696 - Meeds-io/MIPs#68 (#899) (#903)
  • Loading branch information
GouadriaHanen authored Aug 8, 2023
1 parent e460338 commit 8d354a2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,3 +260,6 @@ news.publishTargets.managementDrawer.sameNewsTargetWarning=A target with the sam

news.composer.alert.error.UpdateTargets=Error while updating news targets
news.composer.alert.success.UpdateTargets=News targets successfully updated

news.latest.noSettings=No settings defined for this news list
news.latest.openSettings=Open settings
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
class="text-truncate"
rel="nofollow"
target="_blank">
{{ contentTitle }}
{{ contentTitle }}
</a>
<p>
({{ attrValue }})
({{ attrValue }})
</p>
</div>
</template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,19 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<v-flex class="d-flex news-empty-template noNews">
<div class="ma-auto py-5 d-flex flex-column align-center noNewsContent">
<i class="uiNoNewsIcon"></i>
<span class="title mt-5">
<span v-if="!canPublishNews" class="title mt-5">
{{ $t('news.latest.noNews') }}
</span>
<span v-else class="title my-1 font-weight-bold">
{{ $t('news.latest.noSettings') }}
</span>
<v-btn
v-if="canPublishNews"
class="btn btn-primary"
outlined
@click="openDrawer">
{{ $t('news.latest.openSettings') }}
</v-btn>
</div>
</v-flex>
</v-main>
Expand Down

0 comments on commit 8d354a2

Please sign in to comment.