Skip to content
Snippets Groups Projects
Commit befecb52 authored by Rasmus Fuhse's avatar Rasmus Fuhse
Browse files

Resolve "OER-Campus: Entdeckermodus kann nicht verlassen werden"

Closes #2871

Merge request studip/studip!1971
parent 069fd4de
No related branches found
No related tags found
No related merge requests found
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
<h3><?= _('Wertvolle Materialien entdecken!') ?></h3> <h3><?= _('Wertvolle Materialien entdecken!') ?></h3>
<?= _('Klicken Sie auf die Schlagwörter und entdecken Sie Lernmaterialien zum Thema.') ?> <?= _('Klicken Sie auf die Schlagwörter und entdecken Sie Lernmaterialien zum Thema.') ?>
</div> </div>
<a v-if="tagHistory.length" href="" @click.prevent="backInCloud" class="back-button"> <a href="" @click.prevent="backInCloud" class="back-button">
<studip-icon shape="arr_1left" role="clickable" :size="50"></studip-icon> <studip-icon shape="arr_1left" role="clickable" :size="50"></studip-icon>
</a> </a>
<ul class="tags clean"> <ul class="tags clean">
......
...@@ -164,6 +164,10 @@ const OER = { ...@@ -164,6 +164,10 @@ const OER = {
return p; return p;
}, },
backInCloud: function () { backInCloud: function () {
if (this.tagHistory.length === 0) {
this.browseMode = false;
return;
}
this.tagHistory.pop(); this.tagHistory.pop();
let tag_hash = null; let tag_hash = null;
let tag_name = null; let tag_name = null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment