Skip to content
Snippets Groups Projects
Commit 2c9c3894 authored by Ron Lucke's avatar Ron Lucke
Browse files

fix #2127

Closes #2127

Merge request studip/studip!1380
parent 222ef3d7
No related branches found
No related tags found
1 merge request!4Draft: Icon creation
...@@ -94,12 +94,13 @@ ...@@ -94,12 +94,13 @@
<input <input
:id="'cw-element-copy-unit-' + unit.id" :id="'cw-element-copy-unit-' + unit.id"
type="radio" type="radio"
v-model="selectedUnit"
:checked="unit.id === selectedUnitId" :checked="unit.id === selectedUnitId"
:value="unit.id" :value="unit.id"
:key="'radio-' + unit.id" :key="'radio-' + unit.id"
:aria-description="unit.element.attributes.title" :aria-description="unit.element.attributes.title"
/> />
<label @click="selectedUnit = unit" :key="'label-' + unit.id" :for="'cw-shelf-copy-unit-' + unit.id"> <label @click="selectedUnit = unit" :key="'label-' + unit.id" :for="'cw-element-copy-unit-' + unit.id">
<div class="icon"><studip-icon shape="courseware" size="32"/></div> <div class="icon"><studip-icon shape="courseware" size="32"/></div>
<div class="text">{{ unit.element.attributes.title }}</div> <div class="text">{{ unit.element.attributes.title }}</div>
<studip-icon shape="radiobutton-unchecked" size="24" class="unchecked" /> <studip-icon shape="radiobutton-unchecked" size="24" class="unchecked" />
...@@ -463,4 +464,4 @@ export default { ...@@ -463,4 +464,4 @@ export default {
} }
} }
} }
</script> </script>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment