mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
style(split-pane): use proper grammar in warnings (#17681)
This commit is contained in:
committed by
Brandy Carney
parent
1c60a083e5
commit
70ea70346b
@ -150,7 +150,7 @@ export class SplitPane implements ComponentInterface {
|
|||||||
const isMain = contentId !== undefined ? child.id === contentId : child.hasAttribute('main');
|
const isMain = contentId !== undefined ? child.id === contentId : child.hasAttribute('main');
|
||||||
if (isMain) {
|
if (isMain) {
|
||||||
if (foundMain) {
|
if (foundMain) {
|
||||||
console.warn('split pane can not have more than one main node');
|
console.warn('split pane cannot have more than one main node');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
foundMain = true;
|
foundMain = true;
|
||||||
@ -158,7 +158,7 @@ export class SplitPane implements ComponentInterface {
|
|||||||
setPaneClass(child, isMain);
|
setPaneClass(child, isMain);
|
||||||
}
|
}
|
||||||
if (!foundMain) {
|
if (!foundMain) {
|
||||||
console.warn('split pane could not found any main node');
|
console.warn('split pane does not have a specified main node');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user