fix(frontend): knoppen ownLearningContent pagina bovenaan
This commit is contained in:
		
							parent
							
								
									f6c2f71edb
								
							
						
					
					
						commit
						4d20e223e5
					
				
					 1 changed files with 50 additions and 28 deletions
				
			
		|  | @ -104,23 +104,17 @@ | |||
| </script> | ||||
| 
 | ||||
| <template> | ||||
|     <v-card :title="props.selectedLearningPath ? t('editLearningPath') : t('newLearningPath')"> | ||||
|         <template v-slot:text> | ||||
|             <json-editor-vue v-model="learningPath"></json-editor-vue> | ||||
|             <v-alert | ||||
|                 v-if="postError || putError || deleteError || isIdModified" | ||||
|                 icon="mdi mdi-alert-circle" | ||||
|                 type="error" | ||||
|                 :title="t('error')" | ||||
|                 :text="getErrorMessage()!" | ||||
|             ></v-alert> | ||||
|         </template> | ||||
|         <template v-slot:actions> | ||||
|     <v-card> | ||||
|         <template v-slot:title> | ||||
|             <div class="title-container"> | ||||
|                 <span class="title">{{ props.selectedLearningPath ? t('editLearningPath') : t('newLearningPath') }}</span> | ||||
|                 <span class="actions"> | ||||
|                     <v-btn | ||||
|                         @click="uploadLearningPath" | ||||
|                         prependIcon="mdi mdi-check" | ||||
|                         :loading="isPostPending || isPutPending" | ||||
|                         :disabled="parsedLearningPath.hruid === DEFAULT_LEARNING_PATH.hruid || isIdModified" | ||||
|                         variant="text" | ||||
|                     > | ||||
|                         {{ props.selectedLearningPath ? t("saveChanges") : t("create") }} | ||||
|                     </v-btn> | ||||
|  | @ -131,17 +125,45 @@ | |||
|                         color="red" | ||||
|                         prependIcon="mdi mdi-delete" | ||||
|                         :confirmQueryText="t('learningPathDeleteQuery')" | ||||
|                         variant="text" | ||||
|                     /> | ||||
|                     <v-btn | ||||
|                         :href="`/learningPath/${props.selectedLearningPath?.hruid}/${props.selectedLearningPath?.language}/start`" | ||||
|                         target="_blank" | ||||
|                         prepend-icon="mdi mdi-open-in-new" | ||||
|                         :disabled="!props.selectedLearningPath" | ||||
|                         variant="text" | ||||
|                     > | ||||
|                         {{ t("open") }} | ||||
|                     </v-btn> | ||||
|                 </span> | ||||
|             </div> | ||||
|         </template> | ||||
|         <template v-slot:text> | ||||
|             <json-editor-vue v-model="learningPath"></json-editor-vue> | ||||
|             <v-alert | ||||
|                 v-if="postError || putError || deleteError || isIdModified" | ||||
|                 icon="mdi mdi-alert-circle" | ||||
|                 type="error" | ||||
|                 :title="t('error')" | ||||
|                 :text="getErrorMessage()!" | ||||
|             ></v-alert> | ||||
|         </template> | ||||
|     </v-card> | ||||
| </template> | ||||
| 
 | ||||
| <style scoped></style> | ||||
| <style scoped> | ||||
|     .title-container { | ||||
|         display: flex; | ||||
|         flex-direction: row; | ||||
|         flex-wrap: wrap; | ||||
|     } | ||||
|     .title { | ||||
|         flex: 1; | ||||
|     } | ||||
|     .actions { | ||||
|         display: flex; | ||||
|         flex-wrap: wrap; | ||||
|         gap: 10px; | ||||
|     } | ||||
| </style> | ||||
|  |  | |||
		Reference in a new issue
	
	 Gerald Schmittinger
						Gerald Schmittinger