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