Przeglądaj źródła

Change label of the UI button.

Maciej Gołaszewski 6 lat temu
rodzic
commit
427db23894

+ 1 - 1
packages/ckeditor5-restricted-editing/src/restrictededitingexceptionui.js

@@ -28,7 +28,7 @@ export default class RestrictedEditingExceptionUI extends Plugin {
 			const view = new ButtonView( locale );
 
 			view.set( {
-				label: t( 'Restricted editing' ),
+				label: t( 'Enable editing' ),
 				icon: restrictedDocumentIcon,
 				tooltip: true,
 				isToggleable: true

+ 1 - 1
packages/ckeditor5-restricted-editing/tests/restrictededitingexceptionui.js

@@ -36,7 +36,7 @@ describe( 'RestrictedEditingExceptionUI', () => {
 	it( 'should register button', () => {
 		expect( buttonView ).to.be.instanceOf( ButtonView );
 		expect( buttonView.isOn ).to.be.false;
-		expect( buttonView.label ).to.equal( 'Restricted editing' );
+		expect( buttonView.label ).to.equal( 'Enable editing' );
 		expect( buttonView.icon ).to.match( /<svg / );
 		expect( buttonView.isToggleable ).to.be.true;
 	} );