Change: a simpler installUpdateFromLabel
This commit is contained in:
		
							parent
							
								
									ecc306dd1f
								
							
						
					
					
						commit
						d59f24caa6
					
				|  | @ -431,13 +431,8 @@ | ||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   "installUpdateFromLabel": { |   "installUpdateFromLabel": { | ||||||
|     "message": "Install update from $url$", |     "message": "Check for updates", | ||||||
|     "description": "Label for the checkbox to save current URL for update check", |     "description": "Label for the checkbox to save current URL for update check" | ||||||
|     "placeholders": { |  | ||||||
|       "url": { |  | ||||||
|         "content": "$1" |  | ||||||
|       } |  | ||||||
|     } |  | ||||||
|   }, |   }, | ||||||
|   "license": { |   "license": { | ||||||
|     "message": "License", |     "message": "License", | ||||||
|  |  | ||||||
|  | @ -243,7 +243,7 @@ | ||||||
|     // set updateUrl
 |     // set updateUrl
 | ||||||
|     const setUpdate = $('.set-update-url input[type=checkbox]'); |     const setUpdate = $('.set-update-url input[type=checkbox]'); | ||||||
|     const updateUrl = new URL(params.get('updateUrl')); |     const updateUrl = new URL(params.get('updateUrl')); | ||||||
|     $('.set-update-url > span').textContent = t('installUpdateFromLabel', updateUrl.href); |     $('.set-update-url > span').textContent = t('installUpdateFromLabel'); | ||||||
|     if (dup && dup.updateUrl === updateUrl.href) { |     if (dup && dup.updateUrl === updateUrl.href) { | ||||||
|       setUpdate.checked = true; |       setUpdate.checked = true; | ||||||
|       // there is no way to "unset" updateUrl, you can only overwrite it.
 |       // there is no way to "unset" updateUrl, you can only overwrite it.
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user