Skip to content
Snippets Groups Projects
Verified Commit 6d03803a authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Modify sub-resource-lists too

parent 41f0eb72
No related branches found
No related tags found
No related merge requests found
Pipeline #7603 failed
......@@ -16,7 +16,8 @@ module Passwordstate
alias title folder_name
def password_lists
Passwordstate::ResourceList.new client, Passwordstate::Resources::PasswordList,
Passwordstate::ResourceList.new Passwordstate::Resources::PasswordList,
client: client,
search_query: { tree_path: tree_path },
all_path: 'searchpasswordlists',
all_query: { tree_path: tree_path },
......
......@@ -58,7 +58,8 @@ module Passwordstate
def history
raise 'Password history only available on stored passwords' unless stored?
Passwordstate::ResourceList.new client, PasswordHistory,
Passwordstate::ResourceList.new PasswordHistory,
client: client,
all_path: "passwordhistory/#{password_id}",
only: :all
end
......
......@@ -45,7 +45,8 @@ module Passwordstate
end
def passwords
Passwordstate::ResourceList.new client, Passwordstate::Resources::Password,
Passwordstate::ResourceList.new Passwordstate::Resources::Password,
client: client,
all_path: "passwords/#{password_list_id}",
all_query: { query_all: nil },
search_path: "searchpasswords/#{password_list_id}",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment