forked from EVOgeek/Vmeda.Online
		
	MOBILE-3814 eslint: Fix duplicated attributes
This commit is contained in:
		
							parent
							
								
									4af7cd98d6
								
							
						
					
					
						commit
						3e40999366
					
				| @ -28,18 +28,19 @@ | ||||
|             <core-context-menu-item [hidden]="isSelf || !showInfo || !isGroup" [priority]="1000" | ||||
|                 [content]="'addon.messages.groupinfo' | translate" (action)="viewInfo()" iconAction="fas-info-circle"> | ||||
|             </core-context-menu-item> | ||||
|             <core-context-menu-item [hidden]="!groupMessagingEnabled || !conversation" [priority]="800" [content]="(conversation && conversation.isfavourite ? 'addon.messages.removefromfavourites' : | ||||
|                 'addon.messages.addtofavourites') | translate" (action)="changeFavourite($event)" [closeOnClick]="false" | ||||
|                 [iconAction]="favouriteIcon" [iconSlash]="favouriteIconSlash"></core-context-menu-item> | ||||
|             <core-context-menu-item [hidden]="!groupMessagingEnabled || !conversation" [priority]="800" (action)="changeFavourite($event)" | ||||
|                 [closeOnClick]="false" [content]="(conversation && conversation.isfavourite ? 'addon.messages.removefromfavourites' : | ||||
|                 'addon.messages.addtofavourites') | translate" [iconAction]="favouriteIcon" [iconSlash]="favouriteIconSlash"> | ||||
|             </core-context-menu-item> | ||||
|             <core-context-menu-item [hidden]="isSelf || !otherMember || otherMember.isblocked" [priority]="700" | ||||
|                 [content]="'addon.messages.blockuser' | translate" (action)="blockUser()" [iconAction]="blockIcon"> | ||||
|             </core-context-menu-item> | ||||
|             <core-context-menu-item [hidden]="isSelf || !otherMember || !otherMember.isblocked" [priority]="700" | ||||
|                 [content]="'addon.messages.unblockuser' | translate" (action)="unblockUser()" [iconAction]="blockIcon"> | ||||
|             </core-context-menu-item> | ||||
|             <core-context-menu-item [hidden]="isSelf || !muteEnabled || !conversation" [priority]="600" [content]="(conversation && conversation.ismuted ? 'addon.messages.unmuteconversation' : | ||||
|                 'addon.messages.muteconversation') | translate" (action)="changeMute($event)" [closeOnClick]="false" | ||||
|                 [iconAction]="muteIcon"></core-context-menu-item> | ||||
|             <core-context-menu-item [hidden]="isSelf || !muteEnabled || !conversation" [priority]="600" (action)="changeMute($event)" | ||||
|                 [closeOnClick]="false" [content]="(conversation && conversation.ismuted ? 'addon.messages.unmuteconversation' : | ||||
|                 'addon.messages.muteconversation') | translate" [iconAction]="muteIcon"></core-context-menu-item> | ||||
|             <core-context-menu-item [hidden]="!canDelete || !messages || !messages.length" [priority]="400" | ||||
|                 [content]="'addon.messages.showdeletemessages' | translate" iconAction="toggle" [(toggle)]="showDelete"> | ||||
|             </core-context-menu-item> | ||||
|  | ||||
| @ -146,9 +146,11 @@ | ||||
| <!-- Template to render a list of conversations. --> | ||||
| <ng-template #conversationsTemplate let-conversations="conversations"> | ||||
|     <ion-item class="ion-text-wrap addon-message-discussion" *ngFor="let conversation of conversations" button detail="false" | ||||
|         [attr.aria-label]="conversation.name" (click)="gotoConversation(conversation.id, conversation.userid)" [attr.aria-current]="((conversation.id && conversation.id == selectedConversationId) || | ||||
|             (conversation.userid && conversation.userid == selectedUserId)) ? 'page': 'false'" | ||||
|         id="addon-message-conversation-{{ conversation.id ? conversation.id : 'user-' + conversation.userid }}"> | ||||
|         (click)="gotoConversation(conversation.id, conversation.userid)" | ||||
|         [attr.aria-current]="((conversation.id && | ||||
|             conversation.id == selectedConversationId) || (conversation.userid && conversation.userid == selectedUserId)) ? 'page': 'false'" | ||||
|         id="addon-message-conversation-{{ conversation.id ? conversation.id : 'user-' + conversation.userid }}" | ||||
|         [attr.aria-label]="conversation.name"> | ||||
|         <!-- Group conversation image. --> | ||||
|         <ion-avatar slot="start" *ngIf="conversation.type == typeGroup"> | ||||
|             <img [src]="conversation.imageurl" [alt]="conversation.name" core-external-content | ||||
|  | ||||
| @ -13,8 +13,8 @@ | ||||
|                     {{ 'addon.mod_workshop_assessment_accumulative.dimensiongradefor' | translate : {'$a': field.dimtitle } }} | ||||
|                 </span> | ||||
|             </ion-label> | ||||
|             <ion-select [(ngModel)]="selectedValues[n].grade" interface="action-sheet" [interfaceOptions]="{header: 'addon.mod_workshop_assessment_accumulative.dimensiongradefor' | | ||||
|                     translate : {'$a': field.dimtitle }}"> | ||||
|             <ion-select [interfaceOptions]="{header: 'addon.mod_workshop_assessment_accumulative.dimensiongradefor' | | ||||
|                     translate : {'$a': field.dimtitle }}" [(ngModel)]="selectedValues[n].grade" interface="action-sheet"> | ||||
|                 <ion-select-option *ngFor="let grade of field.grades" [value]="grade.value">{{grade.label}}</ion-select-option> | ||||
|             </ion-select> | ||||
|             <core-input-errors *ngIf="fieldErrors['grade_' + n]" [errorText]="fieldErrors['grade_' + n]"> | ||||
|  | ||||
| @ -34,9 +34,9 @@ | ||||
|                     </span> | ||||
|                 </ion-label> | ||||
|                 <core-rich-text-editor [control]="editForm.controls['content']" name="content" | ||||
|                     [placeholder]="'addon.mod_workshop.submissioncontent' | translate" name="content" [component]="component" | ||||
|                     [componentId]="componentId" [autoSave]="true" contextLevel="module" [contextInstanceId]="module.id" | ||||
|                     elementId="content_editor" [draftExtraParams]="editorExtraParams"></core-rich-text-editor> | ||||
|                     [placeholder]="'addon.mod_workshop.submissioncontent' | translate" [component]="component" [componentId]="componentId" | ||||
|                     [autoSave]="true" contextLevel="module" [contextInstanceId]="module.id" elementId="content_editor" | ||||
|                     [draftExtraParams]="editorExtraParams"></core-rich-text-editor> | ||||
|             </ion-item> | ||||
| 
 | ||||
|             <core-attachments *ngIf="fileAvailable" [files]="attachments" [maxSize]="workshop.maxbytes" | ||||
|  | ||||
| @ -143,7 +143,7 @@ | ||||
|     </ion-card> | ||||
| 
 | ||||
|     <ng-container *ngIf="canAccessCourse"> | ||||
|         <ion-button class="ion-margin" *ngFor="let item of courseMenuHandlers" (click)="openMenuItem(item)" [class]="item.data.class" | ||||
|         <ion-button *ngFor="let item of courseMenuHandlers" (click)="openMenuItem(item)" [class]="'ion-margin' + item.data.class" | ||||
|             expand="block"> | ||||
|             <ion-icon *ngIf="item.data.icon" [name]="item.data.icon" slot="start" aria-hidden="true"></ion-icon> | ||||
|             <ion-label>{{item.data.title | translate }}</ion-label> | ||||
|  | ||||
| @ -80,8 +80,7 @@ | ||||
|         </ion-slide> | ||||
|         <ion-slide> | ||||
|             <button [disabled]="!rteEnabled" [attr.aria-pressed]="toolbarStyles.ul" [title]="'core.editor.unorderedlist' | translate" | ||||
|                 (click)="buttonAction($event, 'insertUnorderedList')" (click)="buttonAction($event, 'insertUnorderedList')" | ||||
|                 (mousedown)="downAction($event)" (keydown)="downAction($event)"> | ||||
|                 (click)="buttonAction($event, 'insertUnorderedList')" (mousedown)="downAction($event)" (keydown)="downAction($event)"> | ||||
|                 <ion-icon name="fas-list-ul" aria-hidden="true"></ion-icon> | ||||
|             </button> | ||||
|         </ion-slide> | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| <ion-item button class="divider ion-text-wrap" detail="true" (click)="gotoBlock()" detail="true"> | ||||
| <ion-item button class="divider ion-text-wrap" detail="true" (click)="gotoBlock()"> | ||||
|     <ion-label> | ||||
|         <h2>{{ title | translate }}</h2> | ||||
|     </ion-label> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user