blob: fdb0861358634fbe9a11f6ee477c137e0203a60c [file] [log] [blame]
<style include="cr-shared-style settings-shared iron-flex">
#defaultDownloadPath {
word-break: break-word;
}
</style>
<div class="cr-row first">
<div class="flex cr-padded-text">
<div id="locationLabel" aria-hidden="true">
$i18n{downloadLocation}
</div>
<div class="secondary" id="defaultDownloadPath" aria-hidden="true">
<if expr="not chromeos_ash">
[[prefs.download.default_directory.value]]
</if>
<if expr="chromeos_ash">
[[downloadLocation_]]
</if>
</div>
</div>
<div class="separator"></div>
<controlled-button id="changeDownloadsPath"
label="$i18n{changeDownloadLocation}"
aria-labelledby="locationLabel defaultDownloadPath"
on-click="selectDownloadLocation_"
pref="[[prefs.download.default_directory]]"
end-justified>
</controlled-button>
</div>
<settings-toggle-button
class="hr"
pref="{{prefs.download.prompt_for_download}}"
label="$i18n{promptForDownload}">
</settings-toggle-button>
<template is="dom-if" if="[[autoOpenDownloads_]]" restamp>
<div class="cr-row">
<div class="flex">$i18n{openFileTypesAutomatically}</div>
<div class="separator"></div>
<cr-button id="resetAutoOpenFileTypes"
on-click="onClearAutoOpenFileTypesClick_">
$i18n{clear}
</cr-button>
</div>
</template>
<template is="dom-if" if="[[downloadBubbleEnabled_]]">
<settings-toggle-button id="showDownloadsToggle"
class="hr"
pref="{{prefs.download_bubble.partial_view_enabled}}"
label="$i18n{showDownloadsWhenFinished}">
</settings-toggle-button>
</template>