Show a warning if an article is tagged only with "tips" or "technique".

master
Pacman Ghost 4 years ago
parent 3cb8d390fd
commit 29c93a58b9
  1. 2
      web/src/ArticleSearchResult2.js

@ -240,6 +240,8 @@ export class ArticleSearchResult2
[ () => newVals.article_pageno !== "" && !isNumeric(newVals.article_pageno), "The page number is not numeric.", refs.article_pageno ],
[ () => newVals.article_snippet === "", "No snippet was provided.", refs.article_snippet ],
[ () => newVals.article_authors.length === 0, "No authors were specified.", refs.article_authors ],
[ () => newVals.article_tags && newVals.article_tags.length === 1 && newVals.article_tags[0] === "tips", "This tip has no other tags." ],
[ () => newVals.article_tags && newVals.article_tags.length === 1 && newVals.article_tags[0] === "technique", "This technique article has no other tags." ],
] ;
const verb = isNew ? "create" : "update" ;
checkConstraints(

Loading…
Cancel
Save