mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-05-01 05:31:38 +03:00
Add name field to the filter subscription dialog
This commit is contained in:
parent
8cf898e8d9
commit
5be66e7dc7
3 changed files with 38 additions and 19 deletions
client/src/api
|
@ -167,10 +167,11 @@ export default class Api {
|
|||
return this.makeRequest(path, method);
|
||||
}
|
||||
|
||||
addFilter(url) {
|
||||
addFilter(url, name) {
|
||||
const { path, method } = this.FILTERING_ADD_FILTER;
|
||||
const parameter = 'url';
|
||||
const requestBody = `${parameter}=${url}`;
|
||||
const urlParameter = 'url';
|
||||
const nameParameter = 'name';
|
||||
const requestBody = `${urlParameter}=${url}&${nameParameter}=${name}`;
|
||||
const config = {
|
||||
data: requestBody,
|
||||
header: { 'Content-Type': 'text/plain' },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue