Skip to content

Commit

Permalink
feat: ссылка с domain_idn
Browse files Browse the repository at this point in the history
  • Loading branch information
popstas committed Mar 2, 2019
1 parent f300f8e commit 181f716
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/Toolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export default {
const matchFields = fields.filter(
filter =>
filter.name.includes(q) ||
filter.comment.toLowerCase().includes(q.toLowerCase())
filter.comment && filter.comment.toLowerCase().includes(q.toLowerCase())
);
const sortedFields = matchFields.sort((a, b) =>
a.name > b.name ? 1 : b.name > a.name ? -1 : 0
Expand Down
4 changes: 2 additions & 2 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,10 @@ export default {
}
if (colName == "domain_idn") {
let icon = row.favicon ? row.favicon.replace(/^\//, row.url) : "";
val =
val = '<a href="' + row.url + '" target="_blank">' +
(icon ? `<img style="width:16px;height:16px" src="${icon}"/>` : "") +
" " +
val;
val + '</a>';
}
return val;
Expand Down

0 comments on commit 181f716

Please sign in to comment.